import request from '@/utils/request'

export const getProductionStatistics = (params) => {
  return request({
    url: `/system/monitorCenter/productionStatistics`,
    method: 'get',
    params
  })
}

//beginDate, endDate
export const getEnvironmentTem = (params) => {
  return request({
    url: `/system/monitorCenter/environmentTem`,
    method: 'get',
    params
  })
}
//风速 beginDate, endDate
export const getEnvironmentWs = (params) => {
  return request({
    url: `/system/monitorCenter/environmentWs`,
    method: 'get',
    params
  })
}

export const environmentNoise = () => {
  return request({
    url: `/system/monitorCenter/environmentNoise`,
    method: 'get'
  })
}
export const environmentPm25 = () => {
  return request({
    url: `/system/monitorCenter/environmentPm25`,
    method: 'get'
  })
}
export const environmentPm10 = () => {
  return request({
    url: `/system/monitorCenter/environmentPm10`,
    method: 'get'
  })
}
export const environmentHum = (params) => {
  return request({
    url: `/system/monitorCenter/environmentHum`,
    method: 'get',
    params
  })
}
export const environmentAtm = (params) => {
  return request({
    url: `/system/monitorCenter/environmentAtm`,
    method: 'get',
    params
  })
}


export const getGasConsistency = (data) => {
  return request({
    url: `/system/monitorCenter/gasConsistency?dateType=${data}`,
    method: 'get'
  })
}

export const getGroundCo = (data) => {
  return request({
    url: `/system/monitorCenter/groundCo?dateType=${data}`,
    method: 'get'
  })
}

// 井下
export const getUndergroundCo = (data) => {
  return request({
    url: `/system/monitorCenter/undergroundCo?dateType=${data}`,
    method: 'get'
  })
}

export const getEngineeringProgress = () => {
  return request({
    url: '/system/monitorCenter/engineeringProgress',
    method: 'get'
  })
}

//生产看板 
export const getProductionInfo = (e) => {
  return request({
    url: `/system/monitorCenter/productionInfo`,
    method: 'get'
  })
}
export const getMaterialConsumption = (params) => {
  return request({
    url: `/system/monitorCenter/materialConsumption`,
    method: 'get',
    params
  })
}

export const getCarInfo = (params) => {
  return request({
    url: `/system/monitorCenter/productInfo`,
    method: 'get',
    params
  })
}

export const getManual = (e) => {
  return request({
    url: `/system/monitorCenter/productInfoDetail?id=${e}`,
    method: 'get'
  })
}

export const getProductInfoPieceList = (params) => {
  return request({
    url: `/system/monitorCenter/productInfoPieceList`,
    method: 'get',
    params
  })
}

export const getProductInfoDosageList = (params) => {
  return request({
    url: `/system/monitorCenter/productInfoDosageList`,
    method: 'get',
    params
  })
}
export const getDeviceRunInfo = (type) => {
  return request({
    url: `/system/monitorCenter/deviceRunInfo?type=${type}`,
    method: 'get'
  })
}

// 稳车监测
export const getWinchMonitor = () => {
    return request({
        url: `/system/monitorCenter/winchMonitor`,
        method: 'get'
    })
}

export const getPowerSupplySystem = () => {
    return request({
        url: `/system/monitorCenter/powerSupplySystem`,
        method: 'get'
    })
}
